<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="css/eui.css">
    <style>
        body{
            font: 18px "Microsoft YaHei UI";
            margin: 0 auto;
        }
        header a{
            text-decoration: none;
            color: #6c6c6c;
        }
        a:hover{
            color: #0aa1ed;
        }
        .el-table .el-table__cell{
            padding: 0;
        }
    </style>  
</head>
<body>
<div id="app">
  <el-container style="">
      <el-header style="padding: 0px;height: 150px" >
          <div style="width: 1200px; margin: 0 auto;">
              <img  style="width: 300px;vertical-align: middle; " src="imgs/logo.png" alt="">
              <span>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                   <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a><el-divider direction="vertical"></el-divider>
                  <a href="">首页</a>
              </span>
          </div>
          <div style=" width: 100%; height: 60px; background-color: #82c8ec;">
              <!--导航条-->
              <el-menu   style="margin: 0 auto; width: 1200px"
                         default-active="1"
                         class="el-menu-demo"
                         mode="horizontal"
                         @select="handleSelect"
                         background-color="#82c8ec"
                         text-color="#fff"
                         active-text-color="#fff">
                  <el-menu-item index="1">首页</el-menu-item>
                  <el-menu-item index="2">当季女装</el-menu-item>
                  <el-menu-item index="3">品牌男装</el-menu-item>
                  <el-menu-item index="4">环球美食</el-menu-item>
                  <el-menu-item index="5">医药健康</el-menu-item>
                  <div style="float: right; margin-top: 12px">
                      <el-input size="mini" placeholder="请输入关键词" ></el-input>
                      <el-button class="el-icon-search"
                      style="position: absolute;border: 0px;
                       background-color: rgba(0,0,0,0);right: 11px;top: 5px"></el-button>
                  </div>
              </el-menu>
          </div>
      </el-header>
      <el-main style="width: 1200px;margin: 0 auto">
          <el-row gutter="20">
              <el-col span="18" >
                  <!--轮播图-->
                  <el-carousel trigger="click" height="300px">
                      <el-carousel-item v-for="b in arr" :key="item">
                          <img :src="b.uri" alt="" style="width: 100%;height: 100%">
                      </el-carousel-item>
                  </el-carousel>
              </el-col>
              <el-col span="6">
                  <el-card style="height: 300px">
                      <h3 class="el-icon-trophy" style="font-weight: bold">销量冠军</h3>
                      <el-divider></el-divider>
                      <el-table :data="topArr" style="width: 500px;">
                          <el-table-column label="排名" type="index"></el-table-column>
                          <el-table-column label="商品名">
                              <!--scope.row代表topArr数组的每一行-->
                              <!--想自定义展示的内容需要用下面这块，比如加超链接-->
                              <template slot-scope="scope">
                              <a href="" style="text-decoration: none; color: #333">{{scope.row.title}}</a>
                          </template></el-table-column>
                          <el-table-column label="销量" prop="saleCount"></el-table-column>
                      </el-table>
                  </el-card>
              </el-col>
          </el-row>
          <el-row gutter="20px">
              <el-col span="6" v-for="p in productArr">
                  <el-card>
                      <div><img :src="p.url" width="100%" alt=""></div>
                      <p style="font-size: 15px;height: 38px;margin-top: 0px">{{p.title}}</p>
                      <div>
                         <span>{{p.price}}</span>
                      </div>
                  </el-card>

              </el-col>
          </el-row>

      </el-main>
      <el-footer></el-footer>
  </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="js/vue.js"></script>
<!-- import JavaScript -->
<script src="js/eui.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {
            return {
                   arr:[{uri:"imgs/b1.jpg"},
                       {uri:"imgs/b2.jpg"},
                       {uri:"imgs/b3.jpg"}],
                topArr:[{title:"小米手机",saleCount:"5000"},
                    {title:"苹果手机",saleCount:"1000"},
                    {title:"华为手机",saleCount:"9000"},
                    {title:"魅族手机",saleCount:"5000"},
                    {title:"一加手机",saleCount:"5000"},
                    {title:"真我手机",saleCount:"1000"},
                ],
                productArr:[{title:"森马牛仔裤女宽松慢跑裤运动风2022春季新款显瘦束脚长裤复古",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342},
                    {title:"茵曼马甲连衣裙两件套春季新款娃娃领色织格长袖背心裙套装",price:233,oldPrice:598,url:"imgs/b.jpg",saleCount:2342},
                    {title:"雪中飞墨绿色短袖t恤女夏2022新款纯棉半袖打底体恤夏季上衣潮ins",price:233,oldPrice:598,url:"imgs/c.jpg",saleCount:2342},
                    {title:"【佟丽娅同款】鸭鸭明星同款羽绒服2021年冬季新款时尚连帽外套冬",price:233,oldPrice:598,url:"imgs/d.jpg",saleCount:2342},
                    {title:"BEASTER小恶魔鬼脸明星同款夹克毛绒保暖加厚字母印花宽松外套ins",price:233,oldPrice:598,url:"imgs/e.jpg",saleCount:2342},
                    {title:"香影毛呢外套女中长款2021年冬季新款气质韩版娃娃领紫色呢子大衣",price:233,oldPrice:598,url:"imgs/f.jpg",saleCount:2342},
                    {title:"SEMIR森马商场同款打底针织毛衣纯色高领新品显瘦",price:233,oldPrice:598,url:"imgs/g.jpg",saleCount:2342},
                    {title:"美特斯邦威女MTEE 贺岁系列中长款风衣736598",price:233,oldPrice:598,url:"imgs/h.jpg",saleCount:2342},
                    {title:"imone2021秋款黑色小西装外套女韩版学生宽松学院风外套jk外套",price:233,oldPrice:598,url:"imgs/i.jpg",saleCount:2342},
                    {title:"BEASTER 小恶魔明星同款保暖长袖街头潮流连帽卫衣情侣上衣",price:233,oldPrice:598,url:"imgs/j.jpg",saleCount:2342},
                    {title:"憨厚皇后100%绵羊皮2021秋海宁真皮皮衣女长款修身绵羊皮风衣外",price:233,oldPrice:598,url:"imgs/k.jpg",saleCount:2342},
                    {title:"美特斯邦威高腰牛仔裤女宽松小脚新款春秋彩色潮流女士牛仔",price:233,oldPrice:598,url:"imgs/a.jpg",saleCount:2342}]
            }
        }
    })
</script>
</html>